import 'package:flutter/material.dart';
import 'package:my_app/app/widgets/custom_image_widget.dart';

/// circle_list_item.dart
///
/// Created by fuchuanwei on Tue Feb 21 2023.
///
/// Description: 圆形列表单个项组件
///
class CircleListItem extends StatelessWidget {
  const CircleListItem({super.key});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 8),
      child: Container(
          width: 54,
          height: 54,
          decoration: const BoxDecoration(
            color: Colors.black,
            shape: BoxShape.circle,
          ),
          child: CustomImageWidget(
            imageUrl:
                "https://flutter.dev/docs/cookbook/img-files/effects/split-check/Avatar1.jpg",
            isCircle: true,
          )),
    );
  }
}
